#ifndef CIRCLEPROGRESSBAR_H
#define CIRCLEPROGRESSBAR_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class CircleProgressBar; }
QT_END_NAMESPACE

class CircleProgressBar : public QWidget
{
    Q_OBJECT
    Q_PROPERTY(int value READ value WRITE setValue)

public:
    CircleProgressBar(QWidget *parent = nullptr);
    ~CircleProgressBar();

    int value() const { return m_value; }
    void setValue(int val);

protected:
    void paintEvent(QPaintEvent *event) override;

private:
    Ui::CircleProgressBar *ui;

    int m_value = 0;
    QColor m_progressColor = Qt::blue;
};
#endif // CIRCLEPROGRESSBAR_H
